package com.tyk.bookstore.front.member.model.result;


import com.tyk.bookstore.front.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description 会员模块结果枚举
 */
public enum MemberResultEnum implements ResultEnum {

    MEMBER_NOT_FOUND(4_02_01_01, "会员不存在"),

    ACCOUNT_NOT_FOUND(4_02_01_02, "账号不正确"),
    ACCOUNT_OR_PASSWORD_ERROR(4_02_01_03, "账号或密码不正确"),

    PHONE_NOT_REGISTERED(4_02_01_04, "手机号未注册"),
    PHONE_HAS_REGISTERED(4_02_01_05, "手机号已注册"),
    PHONE_OR_PASSWORD_ERROR(4_02_01_06, "手机号或密码不正确"),

    EMAIL_NOT_BOUND(4_02_01_07, "邮箱未绑定"),
    EMAIL_HAS_BOUND(4_02_01_08, "邮箱已绑定"),
    EMAIL_OR_PASSWORD_ERROR(4_02_01_09, "邮箱或密码不正确"),

    ID_CARD_NOT_BOUND(4_02_01_10, "身份证号未绑定"),
    ID_CARD_HAS_BOUND(4_02_01_11, "身份证号已绑定"),

    PAYMENT_PASSWORD_NOT_SET(4_02_01_12, "未设置支付密码"),
    PAYMENT_PASSWORD_ERROR(4_02_01_13, "支付密码不正确"),

    AMOUNT_INSUFFICIENT(4_02_01_14, "账户余额不足");

    private final Integer code;
    private final String msg;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    MemberResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
